package com.ys.entity.sys;

import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="YS_GridButton", catalog="Id")
public class YsGridButton extends BaseEntity<YsGridButton> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="GridId", nameJava="gridId", typeDataBase="bigint")
	private Long gridId;
	@YsField(nameDataBase="StyleType", nameJava="styleType", typeDataBase="tinyint")
	private Integer styleType;
	@YsField(nameDataBase="Name", nameJava="name", typeDataBase="varchar")
	private String name;
	@YsField(nameDataBase="Event", nameJava="event", typeDataBase="varchar")
	private String event;
	@YsField(nameDataBase="Icon", nameJava="icon", typeDataBase="varchar")
	private String icon;
	@YsField(nameDataBase="NameShiroAuth", nameJava="nameShiroAuth", typeDataBase="varchar")
	private String nameShiroAuth;
	@YsField(nameDataBase="SortNo", nameJava="sortNo", typeDataBase="int")
	private Integer sortNo;
	@YsField(nameDataBase="remark", nameJava="remark", typeDataBase="varchar")
	private String remark;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public YsGridButton setId(Long id) {
		this.id = id;
		return this;
	}
	public Long getGridId() {
		return gridId;
	}
	public YsGridButton setGridId(Long gridId) {
		this.gridId = gridId;
		return this;
	}
	public Integer getStyleType() {
		return styleType;
	}
	public YsGridButton setStyleType(Integer styleType) {
		this.styleType = styleType;
		return this;
	}
	public String getName() {
		return name;
	}
	public YsGridButton setName(String name) {
		this.name = name;
		return this;
	}
	public String getEvent() {
		return event;
	}
	public YsGridButton setEvent(String event) {
		this.event = event;
		return this;
	}
	public String getIcon() {
		return icon;
	}
	public YsGridButton setIcon(String icon) {
		this.icon = icon;
		return this;
	}
	public String getNameShiroAuth() {
		return nameShiroAuth;
	}
	public YsGridButton setNameShiroAuth(String nameShiroAuth) {
		this.nameShiroAuth = nameShiroAuth;
		return this;
	}
	public Integer getSortNo() {
		return sortNo;
	}
	public YsGridButton setSortNo(Integer sortNo) {
		this.sortNo = sortNo;
		return this;
	}
	public String getRemark() {
		return remark;
	}
	public YsGridButton setRemark(String remark) {
		this.remark = remark;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public YsGridButton setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public YsGridButton setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public YsGridButton setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static YsGridButton ysGridButton(
		Long gridId,
		Integer styleType,
		String name,
		String event,
		String icon,
		String nameShiroAuth,
		Integer sortNo,
		String remark,
		Integer status
			) {
		YsGridButton entity = new YsGridButton();
		entity.setGridId(gridId);
		entity.setStyleType(styleType);
		entity.setName(name);
		entity.setEvent(event);
		entity.setIcon(icon);
		entity.setNameShiroAuth(nameShiroAuth);
		entity.setSortNo(sortNo);
		entity.setRemark(remark);
		entity.setStatus(status);
		return entity;
	}
}